home *** CD-ROM | disk | FTP | other *** search
/ The Virtual Portfolio - N…a Showcase - Book 5 1995 / VIRTUAL [md5 EC7DB5CC033E38E511F666CE80BCE509].ISO / mac / Main / VP.mac / 00001.ls next >
Encoding:
Text File  |  1995-07-18  |  4.2 KB  |  237 lines

  1. on startMovie
  2.   global TheSound, soundUp, findMe, n, gMem, upTon
  3.   set n to 8
  4.   set findMe to the pathName
  5.   set the colorDepth to 8
  6.   set soundUp to 7
  7.   set the soundLevel to soundUp
  8.   set upTon to 0
  9.   if the freeBytes > (4 * 1024) then
  10.     set gMem to 1
  11.   else
  12.     set gMem to 0
  13.   end if
  14.   if the quickTimePresent = 1 then
  15.     nothing()
  16.   else
  17.     alert("You do not currently have QuickTime loaded. Several areas of The Virtual Portfolio will not play properly without it. The Mac version is in the QuickTime folder on the CD-ROM. QuickTime for Windows is in the Windows folder.")
  18.     quit()
  19.   end if
  20. end
  21.  
  22. on infoBox
  23.   alert("The Virtual Portfolio‚Ñ¢ is published by American Showcase, Inc. 212-673-6600.  It was created and produced by One World Interactives, Inc.")
  24. end
  25.  
  26. on checkKey
  27.   if the key = RETURN then
  28.     play done
  29.   else
  30.     nothing()
  31.   end if
  32. end
  33.  
  34. on findArtist place
  35.   global TheSound, R
  36.   unLoadCast()
  37.   set R to random(12)
  38.   set TheSound to the name of cast (399 + R)
  39.   puppetSound(0)
  40.   puppetSound(TheSound)
  41.   updateStage()
  42.   play movie "virtual portfolio:stills:" & place
  43. end
  44.  
  45. on findDemo place
  46.   global TheSound, R
  47.   unLoadCast()
  48.   set R to random(12)
  49.   set TheSound to the name of cast (399 + R)
  50.   puppetSound(0)
  51.   puppetSound(TheSound)
  52.   updateStage()
  53.   play movie "virtual portfolio:demos:" & place
  54. end
  55.  
  56. on findInter place
  57.   global TheSound, R
  58.   unLoadCast()
  59.   set R to random(12)
  60.   set TheSound to the name of cast (399 + R)
  61.   puppetSound(0)
  62.   puppetSound(TheSound)
  63.   updateStage()
  64.   play movie "virtual portfolio:inter:" & place
  65. end
  66.  
  67. on findAnim place
  68.   global TheSound, R
  69.   unLoadCast()
  70.   set R to random(12)
  71.   set TheSound to the name of cast (399 + R)
  72.   puppetSound(0)
  73.   puppetSound(TheSound)
  74.   updateStage()
  75.   play movie "virtual portfolio:anim:" & place
  76. end
  77.  
  78. on findTool place
  79.   global TheSound, R
  80.   unLoadCast()
  81.   set R to random(12)
  82.   set TheSound to the name of cast (399 + R)
  83.   puppetSound(0)
  84.   puppetSound(TheSound)
  85.   updateStage()
  86.   play movie "virtual portfolio:tools:" & place
  87. end
  88.  
  89. on openUp place
  90.   global TheSound, R
  91.   unLoadCast()
  92.   set R to random(12)
  93.   set TheSound to the name of cast (399 + R)
  94.   puppetSound(0)
  95.   puppetSound(TheSound)
  96.   updateStage()
  97.   open("virtual portfolio:demos:" & place)
  98. end
  99.  
  100. on setVol
  101.   global soundUp, n, volName
  102.   repeat with i = 1 to n
  103.     set the checkMark of menuItem i of menu "Volume" to 0
  104.   end repeat
  105.   set the checkMark of menuItem (volName + 1) of menu "Volume" to 1
  106.   set soundUp to volName
  107.   set the soundLevel to soundUp
  108. end
  109.  
  110. on volumeOff
  111.   global volName
  112.   set volName to 0
  113.   setVol()
  114. end
  115.  
  116. on volume1
  117.   global volName
  118.   set volName to 1
  119.   setVol()
  120. end
  121.  
  122. on volume2
  123.   global volName
  124.   set volName to 2
  125.   setVol()
  126. end
  127.  
  128. on volume3
  129.   global volName
  130.   set volName to 3
  131.   setVol()
  132. end
  133.  
  134. on volume4
  135.   global volName
  136.   set volName to 4
  137.   setVol()
  138. end
  139.  
  140. on volume5
  141.   global volName
  142.   set volName to 5
  143.   setVol()
  144. end
  145.  
  146. on volume6
  147.   global volName
  148.   set volName to 6
  149.   setVol()
  150. end
  151.  
  152. on volume7
  153.   global volName
  154.   set volName to 7
  155.   setVol()
  156. end
  157.  
  158. on firstIllus
  159.   set the ink of sprite 19 to 0
  160.   updateStage()
  161.   set the ink of sprite 19 to 37
  162.   updateStage()
  163.   go("illus 1")
  164. end
  165.  
  166. on lastIllus
  167.   set the ink of sprite 17 to 0
  168.   updateStage()
  169.   set the ink of sprite 17 to 37
  170.   updateStage()
  171.   go("illus 8")
  172. end
  173.  
  174. on prevFrame
  175.   set the ink of sprite 17 to 0
  176.   updateStage()
  177.   set the ink of sprite 17 to 37
  178.   updateStage()
  179.   go(marker(-1))
  180. end
  181.  
  182. on nextFrame
  183.   set the ink of sprite 19 to 0
  184.   updateStage()
  185.   set the ink of sprite 19 to 37
  186.   updateStage()
  187.   go(marker(1))
  188. end
  189.  
  190. on firstInter
  191.   set the ink of sprite 19 to 0
  192.   updateStage()
  193.   set the ink of sprite 19 to 5
  194.   updateStage()
  195.   go("inter 1")
  196. end
  197.  
  198. on lastInter
  199.   set the ink of sprite 17 to 0
  200.   updateStage()
  201.   set the ink of sprite 17 to 5
  202.   updateStage()
  203.   go("inter 6")
  204. end
  205.  
  206. on firstAnim
  207.   set the ink of sprite 19 to 0
  208.   updateStage()
  209.   set the ink of sprite 19 to 5
  210.   updateStage()
  211.   go("anim 1")
  212. end
  213.  
  214. on lastAnim
  215.   set the ink of sprite 17 to 0
  216.   updateStage()
  217.   set the ink of sprite 17 to 5
  218.   updateStage()
  219.   go("anim 3")
  220. end
  221.  
  222. on firstSpon
  223.   set the ink of sprite 19 to 0
  224.   updateStage()
  225.   set the ink of sprite 19 to 5
  226.   updateStage()
  227.   go("sponsor intro")
  228. end
  229.  
  230. on lastSpon
  231.   set the ink of sprite 17 to 0
  232.   updateStage()
  233.   set the ink of sprite 17 to 5
  234.   updateStage()
  235.   go("sponsor 3")
  236. end
  237.